max_diff = 2;
rate = 5;
typex = 32;
typey = 0;